use clap::Parser;
use types::TResult;

mod cli;
mod screenshot_local;
mod server;
mod types;

#[tokio::main]
async fn main() -> TResult<()> {
    let args = cli::Args::parse();

    println!("服务已启动");
    server::run(args.addr, args.port, args.screen, args.format).await
}
